package com.len.entity;

import com.len.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

@EqualsAndHashCode(callSuper = true)
@Data
@Document(collection = "pay")
public class PayEntity extends BaseEntity {

    @Transient
    private String beginTime;

    @Transient
    private String endTime;

    @Transient
    private String orderId;

    private Long userNO;

    private String userId;

    private Long payTime;

    private Long amount;

    private Long realAmount;

    //支付状态 0待支付 1已支付
    private Integer status;

    //支付方式 0微信 1支付宝 2微信小程序支付
    private Integer payType = 2;

}
